package com.wangfugui.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 短剧分集表
 * </p>
 *
 * @author liyu
 * @since 2025-04-12
 */
@Getter
@Setter
@TableName("short_play_episodes")
@ApiModel(value = "ShortPlayEpisodes对象", description = "短剧分集表")
public class ShortPlayEpisodes implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联的短剧ID")
    @TableField("drama_id")
    private Long dramaId;

    @ApiModelProperty("集数")
    @TableField("episode_number")
    private Integer episodeNumber;

    @ApiModelProperty("本集标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("视频URL")
    @TableField("video_url")
    private String videoUrl;

    @ApiModelProperty("时长(秒)")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty("视频宽度")
    @TableField("width")
    private Integer width;

    @ApiModelProperty("视频高度")
    @TableField("height")
    private Integer height;

    @ApiModelProperty("观看次数")
    @TableField("view_count")
    private Long viewCount;

    @ApiModelProperty("点赞数")
    @TableField("like_count")
    private Long likeCount;

    @ApiModelProperty("评论数")
    @TableField("comment_count")
    private Long commentCount;

    @ApiModelProperty("是否免费(0-收费,1-免费)")
    @TableField("is_free")
    private Byte isFree;

    @ApiModelProperty("状态(0-下架,1-正常)")
    @TableField("status")
    private Byte status;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}
